<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/3/15
 * Time: 12:24
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait SystemNotifyContentTrait
{
    use BaseTrait;
    // ID
    protected $id;
    // 系统通知ID
    protected $system_notify_id;
    // 文本内容
    protected $content_str;

    public function __construct(Request $request)
    {
        $this->id = $request->input('id', 0);
        $this->system_notify_id = $request->input('system_notify_id');
        $this->content_str = $request->input('content_str', '');
    }
}